package com.zzm.validate.web;

import java.util.ResourceBundle;

import com.zzm.validate.web.injector.ArgInjectorFactory;

/**
 *	定义FormValidator的子实现类该如何初始化
 *
 */
public abstract class AbstractFormValidator implements FormValidator {

	protected WebValidateResources validatorResources;

	protected ResourceBundle defaultBundle;
	
	protected ArgInjectorFactory argInjectorFactory;
	
	protected ArgPattern argPattern;
	
	public AbstractFormValidator(WebValidateResources validatorResources,
			ResourceBundle defaultBundle,
			ArgInjectorFactory argInjectorFactory, ArgPattern argPattern) {
		this.validatorResources = validatorResources;
		this.defaultBundle = defaultBundle;
		this.argInjectorFactory = argInjectorFactory;
		this.argInjectorFactory.setFormValidatorStub(this);
		this.argPattern = argPattern;
	}
}
